package com.efast.cafe.portal.service.statemach;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.efast.cafe.portal.bean.statemach.PortalStateMachRel;
import com.efast.cafe.portal.bean.statemach.PortalStateMachRelBean;
import com.efast.cafe.portal.bean.statemach.PortalStateMachRelQueryBean;
import com.efast.cafe.portal.remote.statemach.PortalStateMachRelService;

public interface IPortalStateMachRelService extends PortalStateMachRelService {

	/**
	 * 新增关系
	 * 
	 * @param state
	 */
	public void insertRel(PortalStateMachRel rel);

	/**
	 * 修改关系
	 * 
	 * @param state
	 */
	public void updateRel(PortalStateMachRel rel);

	/**
	 * 删除关系
	 * 
	 * @param stateId
	 */
	public void deleteRel(PortalStateMachRel rel);

	/**
	 * 获取关系列表
	 * 
	 * @param queryBean
	 * @return
	 */
	public PortalStateMachRelQueryBean queryPageRelMachState(PortalStateMachRelQueryBean queryBean);

	/**
	 * 根据参数获取REL对象列表
	 * 
	 * @param handleId
	 * @param stateId
	 * @return
	 */
	public List<PortalStateMachRelBean> queryRelListByPara(Long handleId, Long stateId);

	/**
	 * 根据confId删除Rel
	 * 
	 * @param confId
	 */
	public void deleteRelByConfId(Long confId);
}
